﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example04.aspx.cs" Inherits="Chapter05.Example04" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 5-4 定义带参数的函数</title>
</head>
<body>
    <form>
        <div>
            <script type="text/javascript">
                function myFunc(name, weather) {
                    document.writeln("Hello " + name + ".");
                    document.writeln("It is  " + weather + " today");
                };
                myFunc("Adam", "sunny");
            </script>
        </div>
    </form>
</body>
</html>
